-- GENERATED SPELL FOR [Val'kyr Taskmistress] --


function spell0_31396(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(59047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31396', 2312, 1)
end

function spell1_31396(pUnit, Event) --@Touch of the Val\'kyr,n/a--
pUnit:FullCastSpellOnTarget(57547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31396', 7000, 1)
end

function Sorts_31396(pUnit, Event)
local choix_sorts_31396 = math.random(0, 1)
if choix_sorts_31396 == 0 then
pUnit:RegisterEvent('spell0_31396', 1, 1)
end
if choix_sorts_31396 == 1 then
pUnit:RegisterEvent('spell1_31396', 1, 1)
end
end

function mob31396_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31396', math.random(1500, 3000), 1)
end

function mob31396_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31396_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31396_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31396, 1, 'mob31396_Action')
RegisterUnitEvent(31396, 2, 'mob31396_Leave')
RegisterUnitEvent(31396, 3, 'mob31396_Kill')
RegisterUnitEvent(31396, 4, 'mob31396_Die')
